<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>用户管理信息系统</title>
<link rel="icon" href="img/new1.jpeg" type="image/x-icon"/>
<link href="css/style_log.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="js/jquery-3.6.0.min.js"></script>
<script type="text/javascript" src="js/layer/layer.js"></script>
<script type="text/javascript" src="js/template.js"></script>
<script type="text/javascript" src="js/base.js"></script>
</head>
<body class="login" >
<div class="login_m">
    <div class="login_logo">
        <img src="img/new1.jpeg" width="260" height="120">
    </div>
    <div class="login_boder">
   
        <div class="login_padding" id="login_model">
            <form action="User/login" method="post">
                <h2>用户名</h2>
                <label> <input type="text"  name="name"
                               class="txt_input txt_input2">
                </label>
                <h2>密码</h2>
                <label> <input type="password" name="password"
                                class="txt_input">
                </label>
                <p class="err">&nbsp;</p>
                <div class="rem_sub">
                    <label> <button type="button" onclick="login();"> 登录</button>
                    </label>
                </div>
            </form>
        </div>
    </div>
</div>
<br>
<br>
<script  type="text/javascript" src='layui/layui.js'></script>
<script type="text/javascript">
function login(){
	var data=$("form").serialize();
	ajax_post("User/login",data,function(json){
		if(json.status>0){
			location.href="index.html";
		}
		else{
			openAlert(json.data);
		}
	})
}
</script>
</body>
</html>
